package top.whysu.study.thinkinjava.chapter9.interfaces.example1;

public class Apply {
    public static void process(Processor p, Object s) {
        System.out.println("Using Processor " + p.name());
        System.out.println(p.process(s));
    }
    public static String s = "Disagreement with beliefs is by definition incorrect";

    public static void main(String[] args) {
        process(new Upcase(), s);
        process(new DownCase(), s);
        process(new Spiltter(), s);
    }
}